﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RolePermisions.ascx.cs" Inherits="Web.Cms.Roles.RolePermisions" %>
<table border="0" cellpadding="2" cellspacing="2" class="InputBox" style="width: 100%">
    <tr>
        <td colspan="2" align="left">
            <asp:Button ID="btnBack" runat="server" SkinID="AdminButtonBack"  OnClick="btnBack_Click" /></td>
    </tr>
    <tr>
        <td colspan="2" align="left">
<asp:Label ID="lblUpdateStatus" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td style="width: 11%">
            Phân quyền cho nhóm:</td>
        <td>
            <asp:Label ID="lblGroup" runat="server" Font-Bold="True" ></asp:Label></td>
    </tr>
    <tr>
        <td style="width: 11%; height: 28px;">
        </td>
        <td style="height: 28px">
            <asp:Button ID="btnUpdate" runat="server" SkinID="AdminButtonUpdate" OnClick="btnUpdate_Click" />
            &nbsp;
        </td>
    </tr>
    <tr>
        <td valign="top" colspan="2">
            <asp:GridView ID="grdCommands" runat="server" AutoGenerateColumns="False" Width="100%"
                SkinID="AdminGrid" PageSize="2000">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'>
                            </asp:Label><asp:Label ID="lblCommandId" runat="server" Text='<%# Eval("ID") %>'
                                Visible="false"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Đọc" HeaderStyle-Width="50">
                        <HeaderTemplate>
                            Đọc
                            <br />
                          <asp:CheckBox ID="chkAllRead" runat="server" onclick="CheckAllRead(this)" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkRead" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ghi" HeaderStyle-Width="50">
                        <HeaderTemplate>
                            Ghi<br />
                            <input id="Checkbox1" type="checkbox" runat="server" onclick="SelectAllCheckboxes(this);" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkWrite" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
